import type { RouteRecordRaw } from 'vue-router';

const capability: RouteRecordRaw[] = [
  {
    path: '/resource-center/capability',
    name: 'CapabilityManagement',
    component: () => import('#/views/resource-center/capability/index.vue'),
    meta: {
      title: '能力管理',
      icon: 'ant-design:appstore-outlined',
      orderNo: 2,
      hideMenu: false,
    },
    children: [
      {
        path: 'definitions',
        name: 'CapabilityDefinitions',
        component: () =>
          import(
            '#/views/resource-center/capability/components/CapabilityDefinitionManager.vue'
          ),
        meta: {
          title: '能力定义管理',
          icon: 'ant-design:book-outlined',
          hideMenu: true,
        },
      },
      {
        path: 'instances',
        name: 'CapabilityInstances',
        component: () =>
          import(
            '#/views/resource-center/capability/components/CapabilityInstanceManager.vue'
          ),
        meta: {
          title: '能力实例管理',
          icon: 'ant-design:appstore-outlined',
          hideMenu: true,
        },
      },
      {
        path: 'executions',
        name: 'CapabilityExecutions',
        component: () =>
          import(
            '#/views/resource-center/capability/components/CapabilityExecutionManager.vue'
          ),
        meta: {
          title: '能力执行管理',
          icon: 'ant-design:play-circle-outlined',
          hideMenu: true,
        },
      },
      {
        path: 'monitoring',
        name: 'CapabilityMonitoring',
        component: () =>
          import(
            '#/views/resource-center/capability/components/CapabilityMonitoring.vue'
          ),
        meta: {
          title: '能力监控',
          icon: 'ant-design:dashboard-outlined',
          hideMenu: true,
        },
      },
    ],
  },
];

export default capability;
